<template>
  <div>
    <van-nav-bar
      :title="title"
      fixed
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
  export default {
    name: 'Heads',
    props:['title'],
    data() {
      return {

      }
    },
    methods:{
      onClickLeft(){
        this.$router.go(-1)
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>

